
/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-9-15
 * Time: 下午7:50
 * To change this template use File | Settings | File Templates.
 */


def sHouse = ['Groovy': ['Ken', 'John', 'Jon'], 'Java': ['Ken','John'], 'C#': ['Andrew']]

def uniqMember = []
sHouse.each { k, v ->
    v.each { m ->
        if (!uniqMember.contains(m)) uniqMember.push(m)
    }

    //println k
}
println "Member list: $uniqMember"

def jg =  sHouse.get('Java') - sHouse.get('Groovy')
println "can do java but no groovy: $jg"